//
//  ThreeViewController.m
//  NavigationBarSetting
//
//  Created by 崔宝印 on 14/11/17.
//  Copyright (c) 2014年 Koolearn. All rights reserved.
//

#import "ThreeViewController.h"

@interface ThreeViewController ()

@end

@implementation ThreeViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    [self navigationBarTitle:@"Three" attribute:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:15],NSForegroundColorAttributeName:[UIColor greenColor]}];
    

    [self navigationBarItem:NavigationBarItemLeft image:[UIImage imageNamed:@"nav_left"] action:@selector(goBack:)];
    
    NSAttributedString *attributeSring = [[NSAttributedString alloc] initWithString:@"前进" attributes:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:15],NSForegroundColorAttributeName:[UIColor blackColor]}];
    [self navigationBarItem:NavigationBarItemRight image:[UIImage imageNamed:@"nav_right"] attributeTitle:attributeSring action:@selector(goBack:)];
}

- (void)goBack:(id)sender
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
